package com.example.prison.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import lombok.Data;

/**
 *
 * @TableName personnel_management
 */
@TableName(value ="personnel_management")
@Data
public class PersonnelManagement implements Serializable {

    /**
     * 人员ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 姓名
     */
    @TableField(value = "name")
    private String name;

    /**
     * 性别
     */
    @TableField(value = "sex")
    private String sex;

    /**
     * 职务/职级
     */
    @TableField(value = "post")
    private String post;

    /**
     * 手机号
     */
    @TableField(value = "phone")
    private String phone;

    /**
     * 所属单位
     */
    @TableField(value = "department")
    private String department;

    /**
     * 是否是推送人员（0否1是）
     */
    @TableField(value = "is_push_people")
    private Integer isPushPeople;

    /**
     * 是否是哨卫（0否1是）
     */
    @TableField(value = "is_sentry")
    private Integer isSentry;

    /**
     * 哨卫编号(不是哨位可不填）
     */
    @TableField(value = "sentry_post")
    private String sentryPost;

    /**
     * 登录密码
     */
    @TableField(value = "password")
    private String password;

    /**
     * 所属角色
     */
    @TableField(value = "role")
    private String role;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}
